﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/childmasterpage.Master" CodeBehind="List page.aspx.vb" Inherits="SeaCruises.List_page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS.css" rel="stylesheet" type="text/css" />
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%">
        <tr>
            <td style="border: thin solid #5C9D9E">
                &nbsp; Search word&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="TextBox2" runat="server" Width="302px" BorderColor="#5C9D9E" 
                    BorderStyle="Solid"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="View result" />
            </td>
        </tr>
        <tr>
            <td style="border: thin solid #5C9D9E">
                <p style="language:ar-SA;margin-top:0pt;margin-bottom:0pt;margin-left:0in;
text-align:left;direction:ltr;unicode-bidi:embed;mso-line-break-override:none;
word-break:normal;punctuation-wrap:hanging">
&nbsp;Cruise&#39;s Title <span style="font-size:18.0pt;
font-family:Calibri;mso-ascii-font-family:Calibri;mso-fareast-font-family:+mn-ea;
mso-bidi-font-family:+mn-cs;color:black;mso-color-index:1;mso-font-kerning:
12.0pt;language:en-GB">&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
            </td>
        </tr>
        <tr>
            <td style="border: thin solid #5C9D9E; text-align: left;">
                <table class="style12">
                    <tr>
                        <td style="text-align: right">
                <asp:ImageButton ID="ImageButton1" runat="server" Height="23px" 
                    ImageUrl="~/Images/Rss.bmp" PostBackUrl="~/Feed.aspx" Width="27px" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="CId" DataSourceID="SqlDataSourceCruisesTable" 
                    AllowSorting="True" Width="95%">
                    <Columns>
                        <asp:BoundField DataField="CId" HeaderText="CId" InsertVisible="False" 
                            ReadOnly="True" SortExpression="CId" Visible="False" />
                        <asp:TemplateField HeaderText="Pic" SortExpression="CThumbnail">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CThumbnail") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Image ID="Image2" runat="server" Height="35px" 
                                    ImageUrl='<%# Eval("CThumbnail") %>' Width="45px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Title" SortExpression="CTitle">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CTitle") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# Eval("CId", "Details.aspx?id={0}") %>' 
                                    Text='<%# Eval("CTitle") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CCreatedate" HeaderText="Createdate" 
                            SortExpression="CCreatedate" DataFormatString="{0:dd-MM-yyyy}" />
                    </Columns>
                </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Button ID="Button2" runat="server" Text="Add A new Cruise" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:SqlDataSource ID="SqlDataSourceCruisesTable" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionStringDB %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionStringDB.ProviderName %>" 
                    SelectCommand="SELECT * FROM [CruisesTable]"></asp:SqlDataSource>
                <br />
            </td>
        </tr>
    </table>
</asp:Content>
